package com.example.uploadtest.hsf;


import com.youku.yklive.hsf.identity.HsfIdentificationService;
import com.youku.yklive.hsf.identity.HsfIdentityInfoService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * hsf服务的统一个Config类，在其它需要使用的地方，直接@Autowired注入即可。详情见
 * http://gitlab.alibaba-inc.com/middleware-container/pandora-boot/wikis/spring-boot-hsf
 *
 * @author chengxu
 */
@Configuration
@Component
public class HsfConfig {
    @DubboReference(
            group = "HSF",
            version = "1.0.0",
            timeout = 10000, check = false)
    public HsfIdentificationService hsfIdentificationService;


    @DubboReference(group = "HSF", timeout = 20000, version = "1.0.0", check = false)
    public HsfIdentityInfoService hsfIdentityInfoService;
}
